<script>
export default {
  name: "RegisterAvatarEditIcon",
  methods: {
    handleClickAvatar() {
      this.$emit('clickEdit');
    },
  }
}
</script>

<template>
<!-- This is avatar edit icon. (top right corner) -->
<div class="register-avatar-edit-container" @click="handleClickAvatar">
  <i class="el-icon-edit flex-center"></i>
</div>
</template>

<style scoped lang="scss">
.register-avatar-edit-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 4vh;
  height: 4vh;
  border-radius: 50%;
  background: var(--register-avatar-edit-bg);
  color: var(--im-color-white);

  .el-icon-edit {
    width: 100%;
    height: 100%;
    font-size: 2vh;
  }
}
</style>